{template dsu_kkvip:header}
<div class="pay">
	<form method="post" action="vip.php?action=paycenter" onsubmit="$('submit_btn').disabled='disabled';">
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<h3>{if !$vip->is_vip()}{lang dsu_kkvip:vip_pay}{else}{lang dsu_kkvip:vip_pay2}{/if}</h3>
		<div class="tips">
			<p>{lang dsu_kkvip:cost} <b>$vip->vars[vip_cost] $vip_credit_name {lang dsu_kkvip:discounted}</b></p>
			<p>{lang dsu_kkvip:paycenter_buy_htm_1} <b>$my_credit $vip_credit_name</b>{lang dsu_kkvip:paycenter_buy_htm_2} <b>$max_month</b> {lang dsu_kkvip:paycenter_buy_htm_3}<a href="home.php?mod=spacecp&ac=credit&op=buy" target="_blank"><b style="color:red;">购买Mac币</b></a> (如Mac币不足,请先充值Mac币后再来此升级VIP)</p>
			<p>{lang dsu_kkvip:cost2}</p>
			<p style="color:red;">{lang dsu_kkvip:cost3}</p>
		</div>
		<ul>
			<li>
				<span>{if !$vip->is_vip()}{lang dsu_kkvip:paycenter_buy_htm_6}{else}{lang dsu_kkvip:paycenter_htm_1}{/if}</span>$_G[member][username]
			</li>
			<li>
				<span>{if !$vip->is_vip()}{lang dsu_kkvip:buytime}{else}{lang dsu_kkvip:exptime}{/if}</span>
				<input type="text" name="month" onblur="if(isNaN(this.value)||this.value<0){this.value=1;}" class="px" value="1"/>
			</li>
			<li>
				<span>{lang dsu_kkvip:paycenter_htm_2}</span>
				<input type="text" name="discount_code" onblur="ajaxget('vip.php?action=paycenter&getmoney=yes&discount_code='+this.value, 'discount_money');" class="px"/>
			</li>
			<li>
				<span>{lang dsu_kkvip:paycenter_htm_5}</span><span id="discount_money" style="text-align: left;">0</span><br>
			</li>
		</ul>
		<div class="pay_btn">
			<button class="pn" value="true" id="submit_btn" name="submit_btn" type="submit" onclick="if(!confirm('{lang dsu_kkvip:cost_js}')){return false;}"><span>{if !$vip->is_vip()}{lang dsu_kkvip:vip_pay}{else}{lang dsu_kkvip:vip_pay2}{/if}</span></button>
		</div>
	</form>
</div>

</div></div>
<div class="sd">{template dsu_kkvip:vip_sidebar}</div></div>

{template common/footer}